package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the qingjia database table.
 * 
 */
@Entity
@NamedQuery(name="Qingjia.findAll", query="SELECT q FROM Qingjia q")
public class Qingjia implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="L_ID")
	private int lId;

	@Column(name="L_BOU")
	private String lBou;

	@Column(name="L_CHU")
	private Integer lChu;
	//1，事假 2，病假 3，休假 4，其他
	@Column(name="L_CLASS")
	private Integer lClass;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="L_DATE")
	private Date lDate;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="L_SDATE")
	private Date lSdate;

	@Column(name="L_IDD")
	private Integer lIdd;

	@Temporal(TemporalType.DATE)
	@Column(name="L_JIE")
	private Date lJie;

	@Temporal(TemporalType.DATE)
	@Column(name="L_KAI")
	private Date lKai;

	@Column(name="L_NOWHY")
	private String lNowhy;

	@Column(name="L_SHEN")
	private Integer lShen;

	@Column(name="L_TIME")
	private BigDecimal lTime;

	@Column(name="L_WHY")
	private String lWhy;

	@Column(name="L_XSHEN")
	private String lXshen;
	//1：全天，2：上午，3：下午
	@Column(name="L_TYPE")
	private Integer lType;
	//bi-directional many-to-one association to LeaveType
	@ManyToOne
	@JoinColumn(name="LT_ID")
	private LeaveType leaveType;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public Qingjia() {
	}

	public Date getlSdate() {
		return lSdate;
	}

	public void setlSdate(Date lSdate) {
		this.lSdate = lSdate;
	}

	public int getLId() {
		return this.lId;
	}

	public void setLId(int lId) {
		this.lId = lId;
	}

	public String getLBou() {
		return this.lBou;
	}

	public void setLBou(String lBou) {
		this.lBou = lBou;
	}

	public Integer getLChu() {
		return this.lChu;
	}

	public void setLChu(Integer lChu) {
		this.lChu = lChu;
	}

	public Integer getLClass() {
		return this.lClass;
	}

	public void setLClass(Integer lClass) {
		this.lClass = lClass;
	}

	public Date getLDate() {
		return this.lDate;
	}

	public void setLDate(Date lDate) {
		this.lDate = lDate;
	}

	public Integer getLIdd() {
		return this.lIdd;
	}

	public void setLIdd(Integer lIdd) {
		this.lIdd = lIdd;
	}

	public Date getLJie() {
		return this.lJie;
	}

	public void setLJie(Date lJie) {
		this.lJie = lJie;
	}

	public Date getLKai() {
		return this.lKai;
	}

	public void setLKai(Date lKai) {
		this.lKai = lKai;
	}

	public String getLNowhy() {
		return this.lNowhy;
	}

	public void setLNowhy(String lNowhy) {
		this.lNowhy = lNowhy;
	}

	public Integer getLShen() {
		return this.lShen;
	}

	public void setLShen(Integer lShen) {
		this.lShen = lShen;
	}

	public BigDecimal getLTime() {
		return this.lTime;
	}

	public void setLTime(BigDecimal lTime) {
		this.lTime = lTime;
	}

	public String getLWhy() {
		return this.lWhy;
	}

	public void setLWhy(String lWhy) {
		this.lWhy = lWhy;
	}

	public String getLXshen() {
		return this.lXshen;
	}

	public void setLXshen(String lXshen) {
		this.lXshen = lXshen;
	}

	public Integer getlType() {
		return lType;
	}

	public void setlType(Integer lType) {
		this.lType = lType;
	}

	public LeaveType getLeaveType() {
		return this.leaveType;
	}

	public void setLeaveType(LeaveType leaveType) {
		this.leaveType = leaveType;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}